//
//  LoadingView.m
//  YD_RRT
//
//  Created by glendale on 15/5/23.
//  Copyright (c) 2015年 zgq. All rights reserved.
//

#import "LoadingView.h"
#import "HWProgressHUD.h"

@interface LoadingView()


@end


@implementation LoadingView


-(void)loadingViewWithsuperView:(UIView*)superview{
    [HWProgressHUD showHUDAddedTo:superview];
}
-(void)dismissFromSupview{
    [HWProgressHUD dismissFromSupview];
    isCancel=NO;
    self.isloading=NO;
}


-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    if(isCancel)
    {
        [self dismissFromSupview];
    }
}


@end
